package com.lsa.skienna.challenge.chap9.the110901_Bicoloring;

import java.io.File;
import java.io.FileInputStream;
import java.io.PrintStream;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.output.ByteArrayOutputStream;

import junit.framework.TestCase;

public class TestBicoloring extends TestCase {
	public void test() throws Throwable {
		ByteArrayOutputStream out = new ByteArrayOutputStream();
		Main.process(new FileInputStream("data/pc9/bicoloring/bicoloring.inp"), new PrintStream(out));
		String expected = FileUtils.readFileToString(new File("data/pc9/bicoloring/bicoloring.out"));
		assertEquals(expected, out.toString());
	}
}
